<?php
class Henry_Languages extends Zend_Db_Table_Abstract
{
	protected $_name = ''; 
  	protected $_primary = 'key';
	public function __construct()
	{
		 parent::__construct();
        $dbconfig = $this->_db->getConfig();
        $this->_name = $dbconfig['prefix'].'languages';
	}
	public static function getAllLang()
	{
		$lang = new self();
		$sql = "select * from {$lang->_name}";
		return $lang->_db->fetchAll($sql,null,Zend_Db::FETCH_UNIQUE);
	}
}